import requests

url = 'http://192.168.196.128/apitest/signup/'
# agrs={"username":"jack123","password":"123456","confirm":True,"name":"jack123"}
# agrs={"username":"alice","password":"123456","confirm":True,"name":"alice"}
agrs = {"username": "admin44", "password": "123456", "confirm": '123456', "name": 'CS'}
res = requests.post(url, json=agrs)  # json会把字典变成json字符串
print(res.json())
print(res.request.headers['Content-Type'])
print(res.request.body)
